package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.mapper.CuoyiMapper;
import com.yl.auth.model.entity.Cuoyi;
import com.yl.auth.model.entity.Xiaocuoyi;
import com.yl.auth.service.CuoyiService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ln
 * @since 2023-06-20
 */
@Service
public class CuoyiServiceImpl extends ServiceImpl<CuoyiMapper, Cuoyi> implements CuoyiService {
    @Resource
    private CuoyiMapper cuoyiMapper;

    @Override
    public Page<Cuoyi> getPageVo(Page<Cuoyi> iPage, String hgname, String fbtime, String type, Integer zhuangtai) {
        return cuoyiMapper.getPageVo(iPage,hgname,fbtime,type,zhuangtai);
    }

    @Override
    public Cuoyi getcuoyiById(Integer id) {
        return cuoyiMapper.getcuoyiById(id);
    }

    @Override
    public List<Cuoyi> getcuoyis() {
        return cuoyiMapper.getcuoyis();
    }

    @Override
    public void updatezhuangtai(Integer id) {
        cuoyiMapper.updatezhuangtai(id);
    }

    @Override
    public void save(Xiaocuoyi cuoyi) {
        cuoyiMapper.save(cuoyi);
    }
}
